package com.jrx.anytxn.transaction.job.paph.step;

import com.jrx.anytxn.param.entity.TlFilePaymentLog;
import com.jrx.anytxn.transaction.bean.PaphFileBean;
import com.jrx.anytxn.transaction.service.IPaphFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author liuyu
 */
@Service
public class GenerateRepayDetailFileProcessor implements ItemProcessor<TlFilePaymentLog, PaphFileBean> {

	@Autowired
	private IPaphFileService paphFileService;

	@Override
	public PaphFileBean process(TlFilePaymentLog item) throws Exception {
		return paphFileService.generateBankDeductionMessage(item);
	}
}
